package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 服务包表
 * </p>
 *
 * @author YMY
 * @since 2022-10-12
 */
@Getter
@Setter
  @TableName("tb_package")
@ApiModel(value = "Package对象", description = "服务包表")
public class Package implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("服务包id（默认自增）")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("服务包名称")
      private String name;

      @ApiModelProperty("服务包类型id（默认0）")
      private Long typeId;

      @ApiModelProperty("服务包价格/元（默认0）")
      private BigDecimal price;

      @ApiModelProperty("服务对象（默认为空字符串）")
      private String object;

      @ApiModelProperty("服务包签约周期/年（默认0）")
      private Integer cycle;

      @ApiModelProperty("续费状况（0不可续费，1可续费，默认0）")
      private Byte renew;

      @ApiModelProperty("服务包介绍（默认为空字符串）")
      private String introduce;

      @ApiModelProperty("备注（默认为空字符串）")
      private String notes;

      @ApiModelProperty("创建时间")
        @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("修改时间（默认当前时间）")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

      @ApiModelProperty("创建医生id（默认为0）")
      private Long doctorId;

      @ApiModelProperty("逻辑删除（0未删除，1已删除，默认为0）")
      @TableLogic
    private Byte isDeleted;

      @ApiModelProperty("状态（0未审核，1使用中，2停用，3驳回）")
      private Byte state;
}
